
x=list(range(10))

print(x)
if x[0]>x[1]:
    max=x[0]
    sec=x[1]
else:
    max=x[1]
    sec=x[0]

index=2

while index<len(x):
    if x[index]>max:
        max=x[index]
        sec=max
    elif x[index]>sec:
        sec=x[index]
    index+=1

print(f'第二大数{sec}')